print "Using native PostgreSQL\n"
require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

ActiveRecord::Base.configurations = {
  'arunit' => {
    :adapter  => 'postgresql',
    :username => 'save_only_dirty',
    :password => 'save_only_dirty',
    :database => 'save_only_dirty',
    :encoding => 'UTF8',
    :min_messages => 'warning'
  }
}

ActiveRecord::Base.establish_connection 'arunit'